#include <iostream>
#include <exception>
using namespace std;

struct NewError: public exception{
    const char* what() const throw(){
        return "Custom Error";
    }
};

int main(){
    try{
        throw NewError();
    }catch(NewError&e){
        cout<<"Catch NewError"<<endl;
        cout<<e.what()<<endl;
    }
    return 0;
}
